<?php

namespace ORM\Dynasties2;

use Doctrine\ORM\Mapping as ORM;

/**
 * ORM\Dynasties2\Familytree
 */
class Familytree
{
    /**
     * @var integer $id
     */
    private $id;

    /**
     * @var integer $childId
     */
    private $childId;

    /**
     * @var integer $fatherId
     */
    private $fatherId;

    /**
     * @var integer $motherId
     */
    private $motherId;

    /**
     * @var smallint $isMatrilineal
     */
    private $isMatrilineal;


    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set childId
     *
     * @param integer $childId
     * @return Familytree
     */
    public function setChildId($childId)
    {
        $this->childId = $childId;
        return $this;
    }

    /**
     * Get childId
     *
     * @return integer 
     */
    public function getChildId()
    {
        return $this->childId;
    }

    /**
     * Set fatherId
     *
     * @param integer $fatherId
     * @return Familytree
     */
    public function setFatherId($fatherId)
    {
        $this->fatherId = $fatherId;
        return $this;
    }

    /**
     * Get fatherId
     *
     * @return integer 
     */
    public function getFatherId()
    {
        return $this->fatherId;
    }

    /**
     * Set motherId
     *
     * @param integer $motherId
     * @return Familytree
     */
    public function setMotherId($motherId)
    {
        $this->motherId = $motherId;
        return $this;
    }

    /**
     * Get motherId
     *
     * @return integer 
     */
    public function getMotherId()
    {
        return $this->motherId;
    }

    /**
     * Set isMatrilineal
     *
     * @param smallint $isMatrilineal
     * @return Familytree
     */
    public function setIsMatrilineal($isMatrilineal)
    {
        $this->isMatrilineal = $isMatrilineal;
        return $this;
    }

    /**
     * Get isMatrilineal
     *
     * @return smallint 
     */
    public function getIsMatrilineal()
    {
        return $this->isMatrilineal;
    }
}